package com.example.demo.Gmail.dao;

import com.example.demo.Gmail.model.MessageModel;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

public interface MessageRepository extends MongoRepository<MessageModel,String> {

    Page<MessageModel> findByEmailAddressAndLabel(String emailAddress, String label,Pageable page);
}
